x11: Fix window manager change detection
authorRui Matos <tiagomatos@gmail.com>
Sat, 5 Nov 2011 05:36:52 +0000 (01:36 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 5 Nov 2011 05:37:37 +0000 (01:37 -0400)
commit8067f6b88605e4a5823735c690cb059103a88e6f
treeeb6b566cc4e471b283befd44549aadcbbb92f089
parent8318515cd8c2ab6b3e89bacfbd2e8b3d60cd4c3d
x11: Fix window manager change detection

Since the wmspec_check_window doesn't have a corresponding GdkWindow we can't
rely on the get_event_window() return value to get the XID from. Just use the
XID from the XEvent directly.

https://bugzilla.gnome.org/show_bug.cgi?id=662953
gdk/x11/gdkdisplay-x11.c